const baseUrl='http://47.109.194.123:1234'
// const baseUrl='http://192.168.50.168'
// const baseUrl='http://192.168.43.26'
function serve(url,methods,data){
	const send=new Promise((resolve,reject)=>{
		uni.request({
			url:baseUrl+url,
			method:methods,
			header:{
				token:uni.getStorageSync('token')
			},
			data:data,
			success(res) {
				resolve(res.data)
			},
			fail(res) {
				reject(res)
			}
		})
	});
	return send
}
export default serve